package net.flyinggroup.r2dbc.repository;

import net.flyinggroup.r2dbc.model.TAuthor;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;

import java.util.Collection;

@Repository
public interface AuthorRepository extends R2dbcRepository<TAuthor, Integer> {
    Flux<TAuthor> findAllByIdInAndNameLike(Collection<Integer> ids, String name);
}
